package com.stx.day0915;

import java.util.Scanner;

/**
 * packageName com.stx.day0915
 *
 * @author YangYi
 * @className HeroGameDemo
 * @date 2025/9/15
 * @description TODO
 */
public class HeroGameDemo {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        HeroGame heroGame = new HeroGame();
        heroGame.heroName= "寒冰";
        heroGame.blue = 21;
        heroGame.blood = 50;
        heroGame.level = 18;

        boolean flag = true;
        System.out.println("游戏开始");
        while(flag){
            System.out.println("选择技能");
            int choose = scanner.nextInt();
            switch (choose){
                case 1:{
                    heroGame.attack();
                    break;
                }
                case 2:{
                    heroGame.addBlue();
                    break;
                } default:{
                    System.out.println("游戏胜利，退出");
                    flag = false;
                    break;
                }
            }
        }
    }
}
